{{ define "main" }}
  {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
  {{ range $paginator.Pages }}
  <div class="post animated fadeInDown">
    <div class="list-post">
      <div class="post-title">
        <h3>
          <a href="{{ .RelPermalink }}">{{ .Title }}</a>
        </h3>
      </div>
      <div class="post-content">
        <div class="p_part">
          <p>{{ .Summary }}</p>
        </div>
      </div>
      <div class="post-footer">
        <div class="meta">
          <div class="info">
            <span class="date">{{ .Date.Format "2006-01-02" }}</span>
            {{ with .Params.tags }}
            {{- range $index, $el := . -}}
            <a class="tag" href="{{ ( printf "tags/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a>
            {{- end -}}
            {{ end }}       
          </div>
        </div>
      </div>
    </div>
  </div>
  {{ end }}
<div class="pagination">
  {{ template "_internal/pagination.html" . }}
</div>
{{ end }}
